/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ua.node;

import java.util.ArrayList;
import java.util.List;
import org.xml.sax.Attributes;
import org.xml.sax.helpers.AttributesImpl;

/**
 *
 * @author ananthaamornphong
 */
public class AssociationConnectionNode extends UMLNode{
    String name = "";
    List connections = new ArrayList();
    
    @Override
    public String getName() {
        return name;
    }

    public void addConenection(AssociationEndNode src, AssociationEndNode des){
        connections.add(src);
        connections.add(des);
    }
    @Override
    public List getChildren() {
        return connections;
       
    }

    @Override
    public int getChildCount() {
        return 2;
    }

    @Override
    public Attributes getAttributes() {
        AttributesImpl attributes = new AttributesImpl();
        return attributes;
    }
    
}
